package com.office.personalOffice.workSchedule.dao;

import com.office.personalOffice.personalInfoQuery.model.TbDept;
import com.office.personalOffice.personalInfoQuery.model.TbStaff;
import com.office.personalOffice.workSchedule.model.OaAgent;
import com.office.personalOffice.workSchedule.model.OaReader;
import com.office.personalOffice.workSchedule.model.OaSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface IWorkSchedule {

    //查找指定用户的日程安排
    public List<OaSchedule> getScheduleByCondition(OaSchedule oaSchedule);

    //添加日程安排
    public Integer addSchedule(OaSchedule oaSchedule);

    //检测时间冲突("整个日程安排盖住时间区间 而不是交叉的情况")
    public List<OaSchedule> CheckTime(OaSchedule oaSchedule);

    //删除（更新）日程安排状态
    public Integer deleteSchedule(OaSchedule oaSchedule);

    //修改日程安排状态
    public Integer updateSchedule(OaSchedule oaSchedule);

    //查看读者组
    public List<OaReader> getReaderByCondition(OaReader oaReader);

    //插入读者组
    public Integer addReader(OaReader oaReader);

    //更新读者组
    public Integer udpateReader(OaReader oaReader);

    //查看代办组
    public List<OaAgent> getAgentByCondition(OaAgent oaAgent);

    //查看可以代办的人员
    public List<OaAgent> getAgentedByCondition(OaAgent oaAgent);

    //插入代办组
    public Integer addAgent(OaAgent oaAgent);

    //更新代办组
    public Integer udpateAgent(OaAgent oaAgent);


}
